package HomeWork;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class bb {
    public static void main(String[] args) {
        String s = "2022-03-12 12:23:12";
        DateTimeFormatter dat = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
        LocalDateTime p = LocalDateTime.parse(s,dat);
        LocalDateTime localDateTime = p.plusDays(10);
        System.out.println(localDateTime);
    }
}
